"""
UI配置文件
"""

# Streamlit 应用配置
STREAMLIT_CONFIG = {
    "port": 8811,
    "host": "0.0.0.0",
    "headless": True,
    "title": "XY Stock 股票分析系统"
}

# 市场类型配置
MARKET_TYPES = [
    "A股",
    "港股", 
    "ETF"
]

# 股票代码示例
STOCK_CODE_EXAMPLES = {
    "A股": ["000001", "000002", "600000", "600036"],
    "港股": ["00700", "00941", "02318"],
    "ETF": ["159915", "510300", "512100"]
}

# UI主题配置
UI_THEME = {
    "primary_color": "#1f77b4",
    "background_color": "#ffffff",
    "secondary_background_color": "#f0f2f6",
    "text_color": "#262730"
}

# 关注的指数配置
FOCUS_INDICES = [
    "上证指数",
    "深证成指",
    "沪深300", 
    "中证500",
    "中证1000",
    "中证2000", 
    "北证50",
    "创业板指",
    "科创50"
]

# 指数代码映射
INDEX_CODE_MAPPING = {
    '上证指数': '000001',
    '深证成指': '399001', 
    '创业板指': '399006',
    '沪深300': '000300',
    '中证500': '000905',
    '科创50': '000688',
    '中证1000': '000852',
    '中证2000': '932000',
    '北证50': '899050'
}

# 指数符号映射（用于akshare查询）
INDEX_SYMBOL_MAPPING = {
    '上证指数': 'sh000001',
    '深证成指': 'sz399001',
    '创业板指': 'sz399006', 
    '沪深300': 'sh000300',
    '中证500': 'sh000905',
    '科创50': 'sh000688',
    '中证1000': 'sh000852',
    '中证2000': 'sh932000',
    '北证50': 'bj899050'
}
